package org.dfg.corejava.jdk5;

import java.util.ArrayList;
import java.util.List;

// 泛型
public class T3<T extends People> {

	public static void main(String[] args) {
		List<Integer> l1 = new ArrayList<Integer>();

		// 自动装箱/自动拆箱
		l1.add(1);
		T3<A> t3 = new T3<A>();
		t3.show(new A());
	}

	public void show(T t) {
		System.out.println(t.getClass());

	}
}

class People {

}

class A extends People {

}
